package com.example.swim.Dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.swim.Pojo.ClassRoom;
import com.example.swim.Pojo.Coach;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiYa
 * @create 2022-07-14 12:47
 */
@Repository
@Mapper
public interface ClassRoomDao extends BaseMapper<ClassRoom> {
    List<ClassRoom> findAll();
    ClassRoom findByName(Integer id);
    String findCoach(String name);

    List<ClassRoom> findByCoach_id(Coach coach);
    void  insertClassRoom(ClassRoom cr);
    int  delClassRoom(Integer id);
    int updateClassRoom(ClassRoom cr);
    int updateNum(Integer cid);
}
